import request from "@/utils/request";

// 查询印刷颜色列表
export function listColor(query) {
  return request({
    url: "/print/color/list",
    method: "get",
    params: query,
  });
}

// 查询印刷颜色详细
export function getColor(id) {
  return request({
    url: "/print/color/" + id,
    method: "get",
  });
}

// 新增印刷颜色
export function addColor(data) {
  return request({
    url: "/print/color",
    method: "post",
    data: data,
  });
}

// 修改印刷颜色
export function updateColor(data) {
  return request({
    url: "/print/color",
    method: "put",
    data: data,
  });
}

// 删除印刷颜色
export function delColor(id) {
  return request({
    url: "/print/color/" + id,
    method: "delete",
  });
}
